home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: kremser@sbox.tu-graz.ac.at (Herbert Kremser)
- Newsgroups: comp.lang.c,comp.lang.c.moderated
- Subject: Re: const pointer confusion...
- Followup-To: comp.lang.c,comp.lang.c.moderated
- Date: 26 Mar 1996 18:55:55 -0600
- Organization: Graz University of Technology, Austria
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4ja3mr$p5v@solutions.solon.com>
- References: <4j06gm$7oa@solutions.solon.com> <4j41hs$nku@solutions.solon.com>
- NNTP-Posting-Host: solutions.solon.com
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- The Amorphous Mass (robinson@blue.weeg.uiowa.edu) wrote:
- : Also, there's
- :
- : 4) const int const *p;
- :
- : Which is a constant pointer to a constant integer; neither *p nor
- : p can change.
-
- Not true.
- 4 gives warning: duplicate `const' or something like that.
- It's rather the same as 1 or 3.
-
- What you mean would be
- 4) int const * const p;
-
- Herbert
-
- --
- Herbert Kremser | "On the Internet,
- kremser@flinux.tu-graz.ac.at | nobody knows
- kremser@sbox.tu-graz.ac.at | you're a dog."
-